Skip to content

Comments

feat(providers): add MiniMax chat provider (China & Global)#1032

Merged
nekomeowww merged 2 commits intomoeru-ai:mainfrom
gpc123456:main
Feb 16, 2026
Merged

feat(providers): add MiniMax chat provider (China & Global)#1032
nekomeowww merged 2 commits intomoeru-ai:mainfrom
gpc123456:main

Conversation

@gpc123456
Copy link
Contributor

@gpc123456 gpc123456 commented Feb 14, 2026

Description

  • Add MiniMax chat provider with two regional variants:
    • MiniMax (China): api.minimaxi.com for China users
    • MiniMax Global: api.minimax.io for international users
  • Support 6 models: MiniMax-M2.5, M2.5-highspeed, M2.1, M2.1-highspeed, M2-her (roleplay), and M2
  • Register providers in both the new defineProvider catalog and legacy providerMetadata store
  • Add i18n translations for all 9 locales (en, zh-Hans, zh-Hant, ja, ko, es, fr, ru, vi)

Notes

  • MiniMax does not support the /v1/models endpoint, so model lists are provided statically and validation only checks connectivity (same approach as the Anthropic provider)
  • Uses createMinimaxCn and createMinimax from @xsai-ext/providers/create which are already available in the project dependency

Test plan

  • ESLint: 0 errors
  • TypeScript (vue-tsc --noEmit): 0 errors
  • Provider appears correctly in both /settings/providers and /v2/settings/providers
  • Health check validation passes with valid API key

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @gpc123456, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the platform's AI capabilities by integrating the MiniMax chat provider, offering distinct regional variants for China and global users. It introduces support for a diverse set of MiniMax models and ensures seamless integration into the existing provider management system, complete with internationalization support for a broader audience.

Highlights

  • MiniMax Provider Integration: Introduced two new MiniMax chat providers: one for China (api.minimaxi.com) and one for global users (api.minimax.io).
  • Model Support: Added support for six MiniMax models, including M2.5, M2.1, M2-her, and their high-speed variants.
  • Provider Registration: Registered the new providers in both the defineProvider catalog and the legacy providerMetadata store for comprehensive integration.
  • Internationalization: Included i18n translations for nine different locales to support a global user base.
Changelog
  • packages/stage-ui/src/libs/providers/providers/index.ts
    • Added an import statement for the new MiniMax provider.
  • packages/stage-ui/src/libs/providers/providers/minimax/index.ts
    • Created a new file to define the MiniMax and MiniMax Global chat providers.
    • Implemented configuration schemas for both regional variants using zod.
    • Defined a static list of six supported MiniMax models with descriptions.
    • Registered the providerMinimax (China) and providerMinimaxGlobal (International) using defineProvider.
    • Configured localized labels, descriptions, and API key/base URL fields for both providers.
    • Set up connectivity validation for both providers, noting that model listing is static.
  • packages/stage-ui/src/stores/providers.ts
    • Imported createMinimax and createMinimaxCn functions.
    • Registered the minimax and minimax-global providers in the useProvidersStore.
    • Configured provider metadata, including names, descriptions, icons, default base URLs, and static model lists for both MiniMax variants.
    • Specified 'health' validation for both providers, consistent with the static model list approach.
Ignored Files
  • Ignored by pattern: packages/i18n/src/** (9)
    • packages/i18n/src/locales/en/settings.yaml
    • packages/i18n/src/locales/es/settings.yaml
    • packages/i18n/src/locales/fr/settings.yaml
    • packages/i18n/src/locales/ja/settings.yaml
    • packages/i18n/src/locales/ko/settings.yaml
    • packages/i18n/src/locales/ru/settings.yaml
    • packages/i18n/src/locales/vi/settings.yaml
    • packages/i18n/src/locales/zh-Hans/settings.yaml
    • packages/i18n/src/locales/zh-Hant/settings.yaml
Activity
  • No human activity (comments, reviews, etc.) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds support for the MiniMax chat provider, including both China and Global variants. The implementation is clear and follows existing patterns in the codebase. Overall, this is a great addition.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2026

⏳ Approval required for deploying to Cloudflare Workers (Preview) for stage-web.

Name Link
🔭 Waiting for approval For maintainers, approve here

Hey, @nekomeowww, @sumimakito, @luoling8192, @LemonNekoGH, kindly take some time to review and approve this deployment when you are available. Thank you! 🙏

@nekomeowww nekomeowww merged commit 1c6df1c into moeru-ai:main Feb 16, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants